<%include top.html %>
<script type="text/javascript" src="/webapp/js/myproperty.js"></script>
<style type="text/css">
	.am-u-sm-12 img{
	   margin-top:-3px;width:25px;height:25px;
	}
	
	.am-g a{color:#939393;}
	
</style>
<body>
<input id="btid" value="2" type="hidden">
<div class="am-g am-topbar-fixed-top" style=";padding:0 0;background:#ffaa43;height:45px;">
	<a href="javascript:history.back();">
	<div class="am-u-sm-3" style="margin-top:10px;text-align:left">
		<span class="am-icon-angle-left am-icon-sm" style="color:white;"></span>
	</div> 
	</a>
	<div class="am-u-sm-6" style="margin-top:10px;font-family:微软雅黑;color:white;text-align:center;">
		物业缴费
	</div>

	<a href="/wap">
	<div class="am-u-sm-3" style="margin-top:11px;text-align:right">
       <!--
		<span class="am-icon-home am-icon-sm" style="color:white;"></span>
    -->
	</div> 
	</a>
</div>
<div class="am-g">
	<div class="am-u-sm-12">
       <%=locals.comuser.compounds%>&nbsp;
       <%=locals.comuser.unitName%>&nbsp;
       <%=locals.comuser.roomNumber%>号
	</div>
	
	<div class="am-u-sm-12" style="color: red;font-size: 13px;">
		温馨提示：若您在物业公司已缴清费用，请不要在此重复缴费。
	</div>
	
</div>
<%
   var rTotal=0;
%>
<div class="am-g"  style="margin-bottom: 80px;">
	<%if(locals.datas.length<1){%>
		<div class="am-u-sm-12"  style="padding:5px;text-align:center;">
	    	暂无收费信息...
	    </div>
	<%}%>
	<%
	var yearmonth="";
	for(var i=0;i<locals.datas.length;i++){ 
		rTotal+=Number(locals.datas[i].qsaccount);
		
		%>
		  	<div class="am-u-sm-12"  style="padding:5px;">
		  		<%if(yearmonth!=locals.datas[i].yearmonth){
		  		  yearmonth=locals.datas[i].yearmonth;	
		  		%>
					<div class="am-u-sm-12" id="<%=locals.datas[i].yearmonth%>" name="yearmonth" style="background:#efefef;border-radius:5px;padding:2px;color:red;">
						 <%=locals.datas[i].yearmonth%>
					</div>
		        <%}%>
			<div class="am-u-sm-12" name="<%=locals.datas[i].yearmonth%>"  style="border-radius:5px;padding:5px;">
				<div class="am-u-sm-6" name="name" style="padding:0px;">
					<%=locals.datas[i].name%>
				</div>
				
				<div class="am-u-sm-6"  style="padding:0px;">
					￥  <span name="qsaccount"><%=locals.datas[i].qsaccount%></span> 
				</div>
			</div>
	   </div>
	<%}%>
</div>

<input  type="hidden" id="name" value="<%=locals.comuser.realName%>"/>
<input  type="hidden" id="zycode" value="<%=locals.comuser.zycode%>"/>
<input  type="hidden" id="compound" value="<%=locals.comuser.compounds%>"/>

<%if(locals.datas.length>0){%>
<div class="am-g am-topbar-fixed-bottom" style="margin-bottom:90px;padding-left:5px;color:red">
总计：￥<%=rTotal.toFixed(2)%>

<input type="hidden" id="rTotal" value="<%=rTotal.toFixed(2)%>" />

</div>

<div class="am-g am-topbar-fixed-bottom" style="margin-bottom:45px;padding-left:0px;color:red">
<select required id="payType" name="payType" class="am-form-field" ng-model="order.payType" ng-options="item.value as item.key for item in payTypes" >
			
</select>
</div>

<div class="am-g am-topbar-fixed-bottom">
	 <button type="button"  id="allPay" class="am-btn am-btn-warning am-btn-block">立即缴费</button>
</div>

<%}%>
<%include common.html %>
<%include bottom.html %>







